package Java8_26;

public class TestFly {
    public static void main(String[] args) {
        Pilot p = new Pilot("王老五");
        Pilot p1 = new Pilot("王老六");

        Plane1 plane1 = new Keji("250吨", "2500米", 100);
        Plane1 plane2 = new Zhandouji("200吨", "2000米", 10);

        Zhandouji zhandouji = (Zhandouji) plane2;
        p.driver(plane1);
        plane1.takeOff(p);
        plane1.speed(p);
        plane1.land(p);
        p1.driver(plane2);
        plane2.takeOff(p1);
        plane2.speed(p1);
        plane2.land(p1);
        zhandouji.circle(p1);
        zhandouji.lunch(p1);

    }
}
